Namespace("sketch.ui.common");

(function(ui, fwk) {
    ui.ButtonBase = klass(fwk.UIElement, {
        __type__: "Button",
        _callSuper: false,

        _constructor: function(){
            ui.ButtonBase.SuperConstructor.call(this, true);

            this.properties.createProperty("label", "Label", "Button").editorTemplate("#editor-textbox");
            var font = this.properties.createProperty("font", "Font", new fwk.Font()).editable();
            font().set("bold", true);
        },

        dblclick : function(event){
            this.showInplaceEditor(this.properties.label);
        },
        font: function(){
            return this.properties.font();
        }
    });

})(sketch.ui.common, sketch.framework);